package cn.mzboy.stock.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StockController {

    @GetMapping("/operateStock/{productId}")
    public String operateStock(@PathVariable String productId){
        System.out.println("-1");
        return "product is "+productId+" , 库存-1";
    }
}
